#include <stdio.h>

char *My_strstr(char *num, char *num1)
{
    char i = 0;
    while (*num)
    {
        if (*num != *num1)
        {
            num++;
            num1 -= i;
            i = 0;
        }
        else
        {
            num++;
            num1++;
            i++;
        }
        if (*num1 == '\0')
        {
            num -= i;
            return num;
        }
    }
    return NULL;
}
int main(int argc, char const *argv[])
{
    char num[128] = "asdffgghj";
    printf("请输入需在asdffgghj查找的字符串:");
    char num1[128] = "";
    scanf("%s", num1);
    printf("%s\n", My_strstr(num, num1));
    return 0;
}